package m.java.spi;

import java.util.ServiceLoader;

public class Mainda {

    public static void main(String[] args) {

        ServiceLoader<Command> serviceLoader = ServiceLoader.load(Command.class);
        System.out.println(serviceLoader);

        for (Command command : serviceLoader) {
            command.excute();

        }
    }
}
